<template>
  <el-icon :size="16"><List /></el-icon>
  <span style="font-weight: 600;font-size: 16px;">操作信息</span>
  <el-table :border="true" style="margin:20px 0" :data="prop.operations">
    <el-table-column label="操作者" prop="operateMan"></el-table-column>
    <el-table-column label="操作时间" prop="createTime">
      <template #default="scope">
        {{ 
          scope.row.createTime ? dayjs(scope.row.createTime).format("YYYY-MM-DD hh:mm:ss") : "/"
        }}
      </template>
    </el-table-column>
    <el-table-column label="订单状态" prop="orderStatus">
      <template #default="scope">
        {{ OrderStatus[scope.row.orderStatus] }}
      </template>
    </el-table-column>
    <el-table-column label="付款状态"></el-table-column>
    <el-table-column label="发货状态"></el-table-column>
    <el-table-column label="备注" prop="note"></el-table-column>
  </el-table>
</template>
<script setup lang="ts">
import * as dayjs from "dayjs";
enum OrderStatus{
  "待付款",
  "待发货",
  "已发货",
  "已完成",
  "已关闭"
}
let prop = defineProps<{
  operations:Array<{}>
}>()
</script>
